<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<script
	src="${ctx}/jsps/theme/${webSite.webSkin.filename}/js/jquery-1.4.4.min.js"
	type="text/javascript"></script>
<script src="${ctx}/jsps/theme/${webSite.webSkin.filename}/js/news.js" type="text/javascript"></script>
<div id="head">
	<div id="top">
		<div class="top_nav">
			<ul>
				<li>
					&nbsp;&nbsp;&nbsp;&nbsp;
				</li>
				<li>
					<a href="${ctx}/epIndexNewsAction.htm">首页</a>|
				</li>
				<li>
					<c:if test="${not empty map.us}">
						<a
							href="${ctx}/epIndexNewsAction!introduction.htm?epColumnId=${map.us.enterpriseColumn.id}">${map.us.enterpriseColumn.names}</a>|
                	</c:if>
				</li>
				<li>
					<c:if test="${not empty map.ditu}">
						<a
							href="${ctx}/epIndexNewsAction!webmap.htm">${map.ditu.enterpriseColumn.names}</a>|	
                	</c:if>

				</li>
				<li>
					<a target="_top"  id="addFavorite">收藏本站</a>
				</li>
			</ul>
		</div>
	</div>
	<div class="banner">
		<div id="nav_time">
			<div id="nav_time_info"></div>
		</div>
		<div id="nav">
			<ul>
				<c:forEach var="column" items="${columnlist}" begin="0" end="9">
					<c:if test="${column.isValidInNav=='1'}">
						<c:if test="${column.typeColumn == 'link'}">
							<li>
								<a href="${column.linkUrl}">${column.names}</a>
							</li>
						</c:if>
						<c:if test="${column.typeColumn == 'mostlist'}">
							<li>
								<a
									href="${ctx}/epIndexNewsAction!news_list_more.htm?epColumnId=${column.id}">${column.names}</a>
							</li>
						</c:if>
						<c:if
							test="${column.typeColumn == 'list' or column.typeColumn == 'download'}">
							<li>
								<a
									href="${ctx}/epIndexNewsAction!news_more.htm?epColumnId=${column.id}">${column.names}</a>
							</li>
						</c:if>
						<c:if test="${column.typeColumn == 'content'}">
							<li>
								<a
									href="${ctx}/epIndexNewsAction!news_list_more.htm?epColumnId=${column.id}">${column.names}</a>
							</li>
						</c:if>
					</c:if>
				</c:forEach>
			</ul>
		</div>
	</div>
</div>
<script type="text/javascript">
		$(document).ready(function(){
			var date = new Date();
			var month = date.getMonth()+1;
			var week;
			if(date.getDay()==0) week="星期日";
			if(date.getDay()==1) week="星期一";
			if(date.getDay()==2) week="星期二";
			if(date.getDay()==3) week="星期三";
			if(date.getDay()==4) week="星期四";
			if(date.getDay()==5) week="星期五";
			if(date.getDay()==6) week="星期六";
			
			var result = date.getFullYear()+'年'+month+'月'+date.getDate()+'日  '+week;
			$("#nav_time_info").html(result);
			$("#addFavorite").click(function(){
				if (window.sidebar) {        // Firefox
	                window.sidebar.addPanel ('MCCMS演示站', 'http://www.messcat.com', '');
	            } 
	            else {
	                if (window.external && ('AddFavorite' in window.external)) {
	                        // Internet Explorer
	                    window.external.AddFavorite ('http://www.messcat.com', 'MCCMS演示站');
	                }
	                else {  // Opera, Google Chrome and Safari
	                    alert ("你的浏览器不支持这个操作！");
	                } 
	            }
			    
			});
		});
</script>